﻿<MudBreadcrumbs Items="_items"></MudBreadcrumbs>@Title
@inject NavigationManager Navigation
@code {
    [Parameter]
    public string Title { get; set; }
    [Parameter]
    public string Href { get; set; }
    private List<BreadcrumbItem> _items = new List<BreadcrumbItem> { };
    protected override async Task OnInitializedAsync()
    {   
        _items.Add(new BreadcrumbItem("主页", href: "#"));
        _items.Add(new BreadcrumbItem(Title, href: Href, disabled: true));
    }
    public void UpdateItems()
    {
        _items[1] = new BreadcrumbItem(Title, href: Href, disabled: true);
    }
}